var request=require('request');

request('http://localhost:3000/abc', function (err, res, body) {
    if(err)throw err;
    console.log('\nGET:\n'+JSON.stringify({
        err:err,
        res:res,
        body:JSON.parse(body)
    },null,2));

});

request('http://localhost:3000/redirect', function (err, res, body) {
    if(err)throw err;
    console.log('\n\n\nredirect:\n'+JSON.stringify({
        err:err,
        res:res,
        body:JSON.parse(body)
    },null,2));

});


request.post('http://localhost:3000/abc', function (err, res, body) {
    if(err)throw err;
    console.log('\n\n\nPOST:\n'+JSON.stringify({
        err:err,
        res:res,
        body:JSON.parse(body)
    },null,2));

});